$def with (ctx)

$def innertab(d):
    <table border="0" cellpadding="3" width="100%">
	$for dk in d:
	    <tr>
		<th>$dk</th>
		<td>
		$if dk == 'environ':
		    $:innertab(d[dk])
		$else:
		    $d[dk]
		</td>
		</tr>
	</table>
<html>
<head>
  <title> ctx info </title>
  <meta name="Generator" content="EditPlus">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <link rel="stylesheet" type="text/css" href="/static/css/base.css" />
</head>
<body>
<div align="center">
<table border="0" cellpadding="3">
<caption>ctx info</caption>
$for k in ctx: 
	<tr>
	<th>$k</th>
	<td>$:innertab(ctx[k])</td>
	</tr>
</table>
</div>
</body>
</html>